import { get, post } from "@/utils/request";
/**
 * 列表参数
 * @param id
 * @returns
 */
export const getProductList = (url, params) => {
  return get(url, params);
};

export const getProductDetail = (id) => {
  return get("/api/erp/dressProject/queryById", {
    id,
  });
};

export const getPointProductDetail = (id) => {
  return get("/api/erp/erpPointProduct/list", {
    id,
  }).then((res) => {
    return res.records[0];
  });
};
// 计算价格
export const getPrice = (params) => {
  return post("/api/erp/erpOrder/amountOrder", params)
};
